package com.zpark.servlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @PackageName: com.zpark.servlet
 * @ClassName: ServletDemo06
 * @Description:
 * @author: RZS
 * @date: 2023/3/6  15:08
 */
// 后缀名匹配
@WebServlet("*.html")
// 注意：不允许混用路径匹配
//@WebServlet("/user/*.html")
public class ServletDemo06 extends HttpServlet {
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        resp.getWriter().println("<h1>this is ServletDemo06</h1>");
    }
}
